package com.yanghui.dtracing.log4j2;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

    public static String toDateStr(long timestamp){
        Date date = new Date(timestamp);
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
        return format.format(date);
    }
}
